var express = require('express');
var router = express.Router();
var indexService = require('../services/indexService');
var userService = require('../services/userService');

/* GET home page. 进入主页*/

//转入主页service
router.get('/', indexService.goIndex);

//登陆页面
router.get('/login',indexService.goLogin);

//注册页面
router.get('/register', indexService.goRegister);

//用户激活验证
router.get('/verifyAccount/:id',userService.goVerifyUser);

//论坛版块页面
router.get('/forum',indexService.goForum);


module.exports = router;